package org.amos.gateway.filter;

import org.springframework.core.Ordered;

/**
 * 过滤器排序值统一管理
 * 值越小优先级越高
 */
public interface FilterOrder {
    //初始值
    int INITIAL_ORDER = Ordered.HIGHEST_PRECEDENCE;
    int ORDER_STEP = 10;
    /**
     * --------------------------以下参数由小到大排列--------------------------
     */
    int XSS_FILTER_ORDER = INITIAL_ORDER;
    int CACHE_REQUEST_FILTER_ORDER = XSS_FILTER_ORDER + ORDER_STEP;
    int REQUEST_SYSTEM_FILTER_ORDER = CACHE_REQUEST_FILTER_ORDER + ORDER_STEP;
    int AUTH_FILTER_ORDER = REQUEST_SYSTEM_FILTER_ORDER + ORDER_STEP;
    int FORWARD_AUTH_FILTER_ORDER = AUTH_FILTER_ORDER + ORDER_STEP;
}
